package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 加盟门店每月成本表
 * </p>
 *
 * @author Atlakyn
 * @since 2021-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_store_cost")
public class StoreCost extends Model<StoreCost> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer storeId;

    private String storeName;

    /**
     * 初始成本摊分
     */
    private Long fTanFen;

    /**
     * 发型师成本-底薪
     */
    private Long workerDiXin;

    /**
     * 发型师成本
     */
    private Long worker;

    /**
     * 发型师成本明细
     */
    private String workerDetail;

    /**
     * 发型师成本-提成(按利润30%计算)
     */
    private Long workerTiCheng;

    /**
     * 发型师成本-五险一金
     */
    private Long workerFive;

    /**
     * 管理费
     */
    private Long guanLi;

    /**
     * 租金
     */
    private Long zuJin;

    /**
     * 水电费
     */
    private Long shuiDian;

    /**
     * 杂费
     */
    private Long zaFei;

    /**
     * 潮剪计提(按利润20%计算)
     */
    private Long chaoJian;

    /**
     * 年月
     */
    private String time;

    /**
     * 备注
     */
    private String remark;

    private Date addTime;

    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
